<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
  <title>首页</title>
  <style>
    body {
      padding: 0;
      margin: 0;
    }

    .common-layout {
      display: flex;
      flex-direction: column;
      height: 100vh;
    }

    .container {
      flex: 1;
      display: flex;
      overflow: auto;
    }
  </style>
</head>

<body>
<div class="common-layout">
  <div class="header">
    <%@ include file="Header.jsp" %>
  </div>
  <div class="container">
    <%@ include file="Main.jsp" %>
  </div>
</div>

<script>
  window.onload = function () {
    const mainFrame = document.getElementById("mainFrame")
    console.log(mainFrame)
    var list = document.getElementsByClassName('tab-item')
    list[0].id = 'current'
    mainFrame.src = 'main/Course.jsp'
    setNaxIndex()
    setNavMainIndex()
  }
</script>
</body>
</html>
